package com.honor.games.wg.entities;

import com.honor.games.wg.services.IdGeneratorService;

public class WGUnit extends WGGameObject {

	private WGUnitType unitType = WGUnitType.ELVE;
	private WGPlayer player;
	
	private int locationX;
	private int locationY;
	
	private boolean selected = false;
	
	public WGUnit(WGUnitType unitType, WGPlayer player, int locationX, int locationY) {
		this.unitType = unitType;
		this.setPlayer(player);
		this.locationX = locationX;
		this.locationY = locationY;
	}
		
	public WGUnitType getUnitType() {
		return unitType;
	}

	public WGPlayer getPlayer() {
		return player;
	}

	public void setPlayer(WGPlayer player) {
		this.player = player;
	}

	public int getLocationX() {
		return locationX;
	}

	public void setLocationX(int locationX) {
		this.locationX = locationX;
	}

	public int getLocationY() {
		return locationY;
	}

	public void setLocationY(int locationY) {
		this.locationY = locationY;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}
}
